package com.blog.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.util.Date;

@Document(indexName = "article")
@Data
public class ArticleEs {
    @Id
    private int id;
    @Field(analyzer = "ik_smart")
    private String title;
    @Field(analyzer = "ik_smart")
    private String text;
    private Date createDate;
    private Date updateDate;
    private int userId;
    private int flag;

}
